<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
.error{color:red;}
-->
</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" src="js/tip.js"></script>
<script language="javascript">
function del(id)
{
	if(confirm('您确定要删除吗？'))
	{
		$.post("admin_group.php",{delid:id},function(data,textStatus){
		
											   if(data=1)
											   {
												   info="成功";
												   msg(info);
												}
											   else{
												   info="失败";
												   msg(info);
												   }
											   });
	}
}
</script>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>

<script>
$(document).ready(function(){
	$("#domain").validate({
		rules:{
			   group_name:"required"
			  }
		,
		messages:{
			group_name:"管理员组名称不能为空"
		},
		errorPlacement:function(error,element){
		error.appendTo(element.parent().next().empty());
	   }
	});
});

</script>

<body>
<form id="domain" name="form1" action="" method="post" enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">组管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
		      <br>	
              
               <tr  class="nowtable">
                <td class="left_bt2" style="padding-left:10px;">编号</td>
                <td class="left_bt2">管理组名称</td><td class="left_bt2">操作</td>
              </tr>	
      <{foreach item=loop from=$group_list}>
      <tr id="after">
      <td width="4%" height="30" bgcolor="#f2f2f2" class="left_txt" style="padding-left:20px;">
      <{$loop.id}></td>
      <td width="18%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.group_name}></td>
      <td width="11%" height="30" bgcolor="#f2f2f2" class="left_txt" ><a href="group_right.php?id=<{$loop.id}>"><img src='images/icon_edit.gif' border='0'></a>&nbsp;&nbsp;<a style=" cursor: pointer;" onClick="del(<{$loop.id}>)"><img src="images/icon_trash.gif" border="0"></a></td>
      </tr>
      <{/foreach}>
     <tr><td colspan="2" class="left_txt" style="padding-left:260px; padding-top:30px; padding-bottom:20px;">添加管理员组：<input type="text" name="group_name">
    &nbsp; <input type="submit" name="submit" value="提交"><font style="padding-left:5px; size:auto" color="#FF0000">*</font></td>
    <td class="left_txt"></td>
     </tr> 
 
      </table>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
 
</table>
</form>
</body>
